/**
 * @description 项目主入口
 * @author zywu
 * @date 2020/09/24 13:54:23
 */
import Vue from 'vue'
import App from './App.vue'
import router from './router/router'
import store from './store/store'
import Vant from 'vant'
import {
  Toast,
} from 'vant'
import AnimationText from '@/components/AnimationText'
import CountTo from 'vue-count-to'
import 'vant/lib/index.css'
import '@/assets/font/iconfont.css'
import '@/styles/index.scss'
import vueSwiper from 'vue-awesome-swiper'
import 'swiper/swiper-bundle.css'
import {
  android,
  ios
} from '@/utils/native'
import moment from 'moment'
import '@vant/touch-emulator';

// import vconsole from 'vconsole'
// new vconsole()

Vue.use(Vant)
Vue.use(vueSwiper)
Vue.component('AnimationText', AnimationText)
Vue.component('CountTo', CountTo)

Vue.prototype.$native = store.state.isAndroid ? android : ios
Vue.prototype.$toast = Toast;
Vue.config.productionTip = false
Vue.prototype.$moment = moment

window.myVue = new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App),
}).$mount('#app')
